package io.seata.sample.dao;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @Author: linKe
 * @Date: 2022/1/25 10:24
 * @FileName: StockDao
 * @version: 1.0
 * @Description: 描述
 */
@Repository
public interface StockMapper {

    /**
     * 扣减库存
     *
     * @param productId 产品id
     * @param count     数量
     * @return
     */
    void decrease(@Param("productId") Long productId, @Param("count") Integer count);
}

